package com.qingcheng.service.order;
import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.order.Order;
import com.qingcheng.pojo.order.OrderItem;
import com.qingcheng.pojo.order.Order_Item;

import java.util.*;

/**
 * order业务逻辑层
 */
public interface OrderService {


    public List<Order> findAll();


    public PageResult<Order> findPage(int page, int size);


    public List<Order> findList(Map<String,Object> searchMap);


    public PageResult<Order> findPage(Map<String,Object> searchMap,int page, int size);


    public Order findById(String id);

    public Map<String,Object> add(Order order);


    public void update(Order order);


    public void delete(String id);


    public void findOrder_Item(Order_Item order_item);

    public Order_Item findOrder(String ids);

    /**
     * 批量发货
     * @param orders
     */
    public void batchSend(List<Order> orders);


    public void orderTimeOutLog();

    public void merge(String orderId1, String orderId2);


    public void split(List<OrderItem> orderItems,String orderId);


    public void updatePayStatus(String orderId, String transactionId);
}
